// 引入 request 文件
import request from './index.js'
// import axios from "axios";
// import { json } from 'node:stream/consumers';

export const fetchUserCaptcha = (iphone) => {
	return request({
		url: `/sso/AuthCode?telephone=${iphone}`,
		method: 'get',
		data: params,
		// header: {} // 自定义
	})
}

export const studyInfoById = (code) => {
	return request({
		url: `/wx_user/login`,
		method: 'post',
		data: {
			code
		}
	})
}

